package com.hucheng.seckill.config;

import org.springframework.amqp.core.Queue;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @Author: 凉白开不加冰
 * @Version: 0.0.1V
 * @Date: 2019-07-01
 * @Description: 秒杀消息队列
 **/
@Configuration
public class RabbitP2PConfig {
    public static final String SECKILL_QUEUE_NAME = "seckill_queue";

    @Bean
    public Queue queue() {
        return new Queue(SECKILL_QUEUE_NAME, true);
    }
}
